/*
 *  登录
 *
 */
import { getRequest, postRequest, request } from '@/lib/axios'
interface LoginApi {
  /**
   * 登录 @author 卓大
   */
  login: (param) => Promise<any>

  /**
   * 退出登录 @author 卓大
   */
  logout: () => Promise<any>

  /**
   * 获取验证码 @author 卓大
   */
  getCaptcha: () => Promise<any>

  /**
   * 获取初始化信息
   * */
  getLoginInfo: () => Promise<any>

  /**
   * 获取初始化信息
   * */
  getClearCache: () => Promise<any>
  /**
   * 获取邮箱登录验证码 @author 卓大
   */
  //   sendLoginEmailCode: (loginName) => Promise<any>;

  /**
   * 获取双因子登录标识 @author 卓大
   */
  //   getTwoFactorLoginFlag: () => Promise<any>;
}

export const loginApi: LoginApi = {
  /**
   * 登录 @author 卓大
   */
  login: (param) => {
    return postRequest('/login/dealer', param)
  },

  /**
   * 退出登录 @author 卓大
   */
  logout: () => {
    return getRequest('/login/out')
  },

  /**
   * 获取验证码 @author 卓大
   */
  getCaptcha: () => {
    return request({
      url: '/login/captcha',
      method: 'get',
      responseType: 'blob'
    })
  },

  /**
   * 获取登录信息 @author 卓大
   */
  getLoginInfo: async () => {
    // const res = await getRequest('/init')
    return [
      {
        id: 1,
        pid: 0,
        title: '采购',
        icon: 'vi-ant-design:account-book-filled',
        href: '/procurement',
        api: '',
        menu_type: 0,
        target: '_self',
        file_path: '',
        redirect: '',
        status: 1,
        is_show: 1,
        children: [
          {
            id: 101,
            pid: 1,
            title: '采购管理',
            icon: '',
            href: '/procurement/manage',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 201,
                pid: 101,
                title: '采购单',
                icon: 'vi-ep:add-location',
                href: '/procurement/list',
                api: '/purchase_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/orders/procurement/procurement-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 301,
                    pid: 201,
                    title: '新增',
                    icon: '',
                    href: 'add',
                    api: 'purchase_order/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 302,
                    pid: 201,
                    title: '修改字段',
                    icon: '',
                    href: 'modify',
                    api: 'purchase_order/modify',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 202,
                pid: 101,
                title: '采退单',
                icon: 'vi-ant-design:account-book-filled',
                href: '/procurement/return-list',
                api: '/purchase_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/orders/withdrawal/withdrawal-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 303,
                    pid: 202,
                    title: '新增',
                    icon: '',
                    href: 'add',
                    api: 'purchase_order/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 304,
                    pid: 202,
                    title: '修改字段',
                    icon: '',
                    href: 'modify',
                    api: 'purchase_order/modify',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        id: 2,
        pid: 0,
        title: '销售',
        icon: 'vi-ant-design:pay-circle-filled',
        href: '/sales',
        api: '',
        menu_type: 0,
        target: '_self',
        file_path: '',
        redirect: '',
        status: 1,
        is_show: 1,
        children: [
          {
            id: 102,
            pid: 2,
            title: '销售管理',
            icon: '',
            href: '/sales/manage',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 203,
                pid: 102,
                title: '销售单',
                icon: '',
                href: '/sale/sales',
                api: '/sale/sales',
                menu_type: 1,
                target: '_self',
                file_path: '/business/sale/sales/sales-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 305,
                    pid: 203,
                    title: '导入',
                    icon: '',
                    href: 'import',
                    api: 'sales/import',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 204,
                pid: 102,
                title: '退货单',
                icon: '',
                href: '/sale/return',
                api: '/sale/return',
                menu_type: 1,
                target: '_self',
                file_path: '/business/sale/return/return-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 306,
                    pid: 204,
                    title: '导入',
                    icon: '',
                    href: 'import',
                    api: 'return/import',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 205,
                pid: 102,
                title: '换货单',
                icon: '',
                href: '/sale/barter',
                api: '/sale/barter',
                menu_type: 1,
                target: '_self',
                file_path: '/business/sale/barter/barter-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 307,
                    pid: 205,
                    title: '导入',
                    icon: '',
                    href: 'import',
                    api: 'barter/import',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 245,
                pid: 102,
                title: '订货单',
                icon: '',
                href: '/sale/goods',
                api: '/sale/goods',
                menu_type: 1,
                target: '_self',
                file_path: '/business/sale/goods/goods-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 307,
                    pid: 245,
                    title: '导入',
                    icon: '',
                    href: 'import',
                    api: 'goods/import',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 246,
                pid: 102,
                title: '订退单',
                icon: '',
                href: '/sale/refund',
                api: '/sale/refund',
                menu_type: 1,
                target: '_self',
                file_path: '/business/sale/refund/refund-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 307,
                    pid: 246,
                    title: '导入',
                    icon: '',
                    href: 'import',
                    api: 'refund/import',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              }
            ]
          },
          {
            id: 103,
            pid: 2,
            title: '车销管理',
            icon: '',
            href: '/car_sales',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 206,
                pid: 103,
                title: '车销单',
                icon: '',
                href: '/car/car-list',
                api: '/car/car-list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/sale/car/car-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 207,
                pid: 103,
                title: '车退单',
                icon: '',
                href: '/sales/order',
                api: '/order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/sale/visiting/visiting-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 308,
                    pid: 207,
                    title: '开单',
                    icon: '',
                    href: 'add',
                    api: 'order/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 309,
                    pid: 207,
                    title: '修改字段',
                    icon: '',
                    href: 'modify',
                    api: 'order/modify',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 310,
                    pid: 207,
                    title: '编辑',
                    icon: '',
                    href: 'edit',
                    api: 'order/edit',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 311,
                    pid: 207,
                    title: '删除',
                    icon: '',
                    href: 'del',
                    api: 'order/del',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 312,
                    pid: 207,
                    title: '审核',
                    icon: '',
                    href: 'check',
                    api: 'order/check',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 313,
                    pid: 207,
                    title: '导入',
                    icon: '',
                    href: 'import',
                    api: 'order/import',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        id: 3,
        pid: 0,
        title: '商城',
        icon: 'vi-ant-design:property-safety-filled',
        href: '/store',
        api: '',
        menu_type: 0,
        target: '_self',
        file_path: '',
        redirect: '',
        status: 1,
        is_show: 1,
        children: [
          {
            id: 104,
            pid: 3,
            title: '商品管理',
            icon: '',
            href: '/goods',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 208,
                pid: 104,
                title: '商品列表',
                icon: '',
                href: '/goods/list',
                api: '/goods/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/shopping/product/index.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 314,
                    pid: 208,
                    title: '新增',
                    icon: '',
                    href: 'add',
                    api: 'dealer_goods/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 315,
                    pid: 208,
                    title: '编辑',
                    icon: '',
                    href: 'edit',
                    api: 'dealer_goods/edit',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 316,
                    pid: 208,
                    title: '删除',
                    icon: '',
                    href: 'del',
                    api: 'dealer_goods/del',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 317,
                    pid: 208,
                    title: '修改状态',
                    icon: '',
                    href: 'modify',
                    api: 'dealer_goods/modify',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 318,
                    pid: 208,
                    title: '获取模板',
                    icon: '',
                    href: 'template',
                    api: 'dealer_goods/template',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 319,
                    pid: 208,
                    title: '规格商品删除',
                    icon: '',
                    href: 'del_spec',
                    api: 'dealer_goods/del_spec',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 320,
                    pid: 208,
                    title: '导入',
                    icon: '',
                    href: 'import',
                    api: 'dealer_goods/import',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        id: 4,
        pid: 0,
        title: '服务',
        icon: 'vi-ant-design:solution-outlined',
        href: '/service',
        api: '',
        menu_type: 0,
        target: '_self',
        file_path: '',
        redirect: '',
        status: 1,
        is_show: 1,
        children: [
          {
            id: 105,
            pid: 4,
            title: '服务管理',
            icon: '',
            href: '/support',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 209,
                pid: 105,
                title: '申请扶助',
                icon: '',
                href: '/service/support',
                api: '/service/support',
                menu_type: 1,
                target: '_self',
                file_path: '/business/service/support/support-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 321,
                    pid: 209,
                    title: '新增',
                    icon: '',
                    href: 'add',
                    api: 'support/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 210,
                pid: 105,
                title: '申请记录',
                icon: '',
                href: '/service/record',
                api: '/service/record',
                menu_type: 1,
                target: '_self',
                file_path: '/business/service/record/record-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 322,
                    pid: 210,
                    title: '新增',
                    icon: '',
                    href: 'add',
                    api: 'record/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        id: 5,
        pid: 0,
        title: '营销',
        icon: 'vi-ant-design:apartment-outlined',
        href: '/marketing',
        api: '',
        menu_type: 0,
        target: '_self',
        file_path: '',
        redirect: '',
        status: 1,
        is_show: 1,
        children: [
          {
            id: 106,
            pid: 5,
            title: '陈列管理',
            icon: '',
            href: '/marketing/display',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 211,
                pid: 106,
                title: '陈列模版',
                icon: '',
                href: '/marketing/display/template',
                api: '/company/role/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/marketing/display/template/template-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 212,
                pid: 106,
                title: '陈列协议',
                icon: '',
                href: '/marketing/display/agreement',
                api: '/company/user/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/marketing/display/agreement/agreement-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 213,
                pid: 106,
                title: '陈列协议明细',
                icon: '',
                href: '/marketing/display/details',
                api: '/company/user/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/marketing/display/details/details-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              }
            ]
          },
          {
            id: 107,
            pid: 5,
            title: '门店拜访',
            icon: '',
            href: '/marketing/visit',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 214,
                pid: 107,
                title: '外勤统计',
                icon: '',
                href: '/marketing/visit/personnel',
                api: '/company/role/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/marketing/visit/personnel/personnel-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 215,
                pid: 107,
                title: '拜访记录',
                icon: '',
                href: '/marketing/visit/records',
                api: '/company/user/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/marketing/visit/records/records-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 216,
                pid: 107,
                title: '外勤轨迹',
                icon: '',
                href: '/marketing/visit/map',
                api: '/company/user/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/marketing/visit/map/map-sort.vue',
                redirect: '',
                status: 1,
                is_show: 2
              }
            ]
          },
          {
            id: 196,
            pid: 10,
            title: '合约管理',
            icon: '',
            href: '/marketing/contract',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 197,
                pid: 196,
                title: '预订货',
                icon: '',
                href: '/marketing/contract/reservation',
                api: '/company/role/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/marketing/contract/reservation/reservation-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              }
            ]
          }
        ]
      },
      {
        id: 6,
        pid: 0,
        title: '物流',
        icon: 'vi-ant-design:car-filled',
        href: '/logistics',
        api: '',
        menu_type: 0,
        target: '_self',
        file_path: '',
        redirect: '',
        status: 1,
        is_show: 1,
        children: [
          {
            id: 108,
            pid: 6,
            title: '物流管理',
            icon: '',
            href: '/logistics',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 217,
                pid: 108,
                title: '配送单',
                icon: '',
                href: '/logistics/list',
                api: '/logistics/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/logistics/booking/booking-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 257,
                pid: 108,
                title: '装车单',
                icon: '',
                href: '/logistics/task',
                api: '/load/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/logistics/delivery/delivery-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 258,
                pid: 108,
                title: '签收地址',
                icon: '',
                href: '/map_sign',
                api: '/logistics/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/logistics/map/map-sign.vue',
                redirect: '',
                status: 1,
                is_show: 2
              }
            ]
          }
        ]
      },
      {
        id: 7,
        pid: 0,
        title: '仓储',
        icon: 'vi-ant-design:bank-filled',
        href: '/warehouse',
        api: '',
        menu_type: 0,
        target: '_self',
        file_path: '',
        redirect: '',
        status: 1,
        is_show: 1,
        children: [
          {
            id: 109,
            pid: 7,
            title: '出入库管理',
            icon: '',
            href: '/storage/warehouse/inout',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 218,
                pid: 109,
                title: '入库单',
                icon: '',
                href: '/storage/store/purchase-receipt',
                api: '/into_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/store/purchase-receipt/purchase-receipt-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 219,
                pid: 109,
                title: '出库单',
                icon: '',
                href: '/storage/outbound/sales-outbound',
                api: '/out_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/outbound/sales-outbound/sales-outbound-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 269,
                pid: 109,
                title: '司机回库单',
                icon: '',
                href: '/storage/store/return-warehouse',
                api: '/return_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/returnwarehouse/index.vue',
                redirect: '',
                status: 1,
                is_show: 1
              }
            ]
          },
          {
            id: 110,
            pid: 7,
            title: '仓库作业',
            icon: '',
            href: '/storage/warehouse/manage',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 220,
                pid: 110,
                title: '调拨单',
                icon: '',
                href: '/storage/inwarehouse/transfer',
                api: '/transfer_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/inwarehouse/transfer/transfer-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 323,
                    pid: 220,
                    title: '新增',
                    icon: '',
                    href: 'add',
                    api: 'transfer_order/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 324,
                    pid: 220,
                    title: '审核',
                    icon: '',
                    href: 'check',
                    api: 'transfer_order/check',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 325,
                    pid: 220,
                    title: '删除',
                    icon: '',
                    href: 'del',
                    api: 'transfer_order/del',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 326,
                    pid: 220,
                    title: '出库',
                    icon: '',
                    href: 'check_out',
                    api: 'transfer_order/check_out',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 221,
                pid: 110,
                title: '盘点单',
                icon: '',
                href: '/storage/inwarehouse/stocktaking',
                api: '/check_stock/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/inwarehouse/stocktaking/stocktaking-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  // {
                  //   id: 327,
                  //   pid: 221,
                  //   title: '导出',
                  //   icon: '',
                  //   href: 'export',
                  //   api: 'dealer_goods/export',
                  //   menu_type: 2,
                  //   target: '_self',
                  //   file_path: '',
                  //   redirect: '',
                  //   status: 1,
                  //   is_show: 1
                  // }
                ]
              },
              {
                id: 222,
                pid: 110,
                title: '移位单',
                icon: '',
                href: '/storage/inwarehouse/shift',
                api: '/moving_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/inwarehouse/shift/shift-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 223,
                pid: 110,
                title: '加工厂',
                icon: '',
                href: '/storage/inwarehouse/processing',
                api: '/process_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/inwarehouse/processing/processing-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              }
              // {
              //   id: 248,
              //   pid: 110,
              //   title: '拣货单',
              //   icon: '',
              //   href: '/storage/outbound/picking/',
              //   api: '/pick_order/list',
              //   menu_type: 1,
              //   target: '_self',
              //   file_path: '/business/storage/outbound/picking/picking-list.vue',
              //   redirect: '',
              //   status: 1,
              //   is_show: 1
              // }
            ]
          },
          {
            id: 311,
            pid: 7,
            title: '仓库管理',
            icon: '',
            href: '/storage/warehouse/manage',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 420,
                pid: 311,
                title: '仓库设置',
                icon: '',
                href: '/storage/warehouse/warehouse',
                api: '/warehouse_position/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/warehouse/warehouse/warehouse-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 135,
                    pid: 420,
                    title: '新增',
                    icon: '',
                    href: 'add',
                    api: 'transfer_order/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 136,
                    pid: 420,
                    title: '审核',
                    icon: '',
                    href: 'check',
                    api: 'transfer_order/check',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 137,
                    pid: 420,
                    title: '删除',
                    icon: '',
                    href: 'del',
                    api: 'transfer_order/del',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 138,
                    pid: 420,
                    title: '出库',
                    icon: '',
                    href: 'check_out',
                    api: 'transfer_order/check_out',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 421,
                pid: 311,
                title: '库存明细',
                icon: '',
                href: '/storage/inwarehouse/inventory',
                api: '/dealer_goods/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/warehouse/inventory/inventory-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 139,
                    pid: 421,
                    title: '导出',
                    icon: '',
                    href: 'export',
                    api: 'dealer_goods/export',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 422,
                pid: 110,
                title: '货物预警',
                icon: '',
                href: '/storage/warning/list',
                api: '/pick_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/warning/warning-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              },
              {
                id: 423,
                pid: 110,
                title: '预警规则',
                icon: '',
                href: '/storage/warning-rules',
                api: '/pick_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/storage/warehouse/warning-rules/warning-rules.vue',
                redirect: '',
                status: 1,
                is_show: 1
              }
            ]
          }
        ]
      },
      {
        id: 8,
        pid: 0,
        title: '财务',
        icon: 'vi-ant-design:book-filled',
        href: '/finance',
        api: '',
        menu_type: 0,
        target: '_self',
        file_path: '',
        redirect: '',
        status: 1,
        is_show: 1,
        children: [
          {
            id: 111,
            pid: 8,
            title: '对账管理',
            icon: '',
            href: '/finance/reconciliation',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 224,
                pid: 111,
                title: '司机交账',
                icon: '',
                href: '/finance/reconciliation/driver',
                api: '/finance/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/finance/reconciliation/driver/index.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              },
              {
                id: 225,
                pid: 111,
                title: '经销商交账',
                icon: '',
                href: '/finance/commission/dealer',
                api: '/finance/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/finance/commission/dealer/index.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              }
            ]
          },
          {
            id: 112,
            pid: 8,
            title: '单据管理',
            icon: '',
            href: '/finance/invoices/manage',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 426,
                pid: 112,
                title: '收款单',
                icon: '',
                href: '/finance/invoices/receipt',
                api: '/account_payment/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/finance/invoices/receipt/index.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              },
              {
                id: 247,
                pid: 112,
                title: '付款单',
                icon: '',
                href: '/finance/invoices/payment',
                api: '/payment_order/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/finance/invoices/payment/index.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              },
              {
                id: 427,
                pid: 112,
                title: '内部费用单',
                icon: '',
                href: '/finance/invoices/cost',
                api: '/finance/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/finance/invoices/cost/index.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              },
              {
                id: 251,
                pid: 112,
                title: '欠款收款单',
                icon: '',
                href: '/finance/invoices/accounting-period',
                api: '/finance/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/finance/invoices/accounting-period/index.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              }
            ]
          },
          {
            id: 155,
            pid: 8,
            title: '费用管理',
            icon: '',
            href: '/finance/cost',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 184,
                pid: 155,
                title: '司机提成',
                icon: '',
                href: '/finance/commission/driver',
                api: '/account/driver_commission_list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/finance/commission/driver/index.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              }
              // {
              //   id: 244,
              //   pid: 155,
              //   title: '经销商服务费用单',
              //   icon: '',
              //   href: '/report/warehouse/goods',
              //   api: '/goods/list',
              //   menu_type: 1,
              //   target: '_self',
              //   file_path: '/business/report/warehouse/goods/goods-list.vue',
              //   redirect: '',
              //   status: 1,
              //   is_show: 1
              // }
            ]
          }
        ]
      },
      {
        id: 9,
        pid: 0,
        title: '报表',
        icon: 'vi-ant-design:table-outlined',
        href: '/report',
        api: '',
        menu_type: 0,
        target: '_self',
        file_path: '',
        redirect: '',
        status: 1,
        is_show: 1,
        children: [
          {
            id: 113,
            pid: 9,
            title: '订单报表',
            icon: '',
            href: '/report/order',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 227,
                pid: 113,
                title: '订单销售汇总(门店)',
                icon: '',
                href: '/report/order/store-order-report-list',
                api: '/report/store/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/order/store/store-order-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 328,
                    pid: 227,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/store_sale',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 228,
                pid: 113,
                title: '订单销售汇总(业务员)',
                icon: '',
                href: '/report/order/salesman-order-report-list',
                api: '/report/salesman/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/order/salesman/salesman-order-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 329,
                    pid: 228,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/store_sale',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 229,
                pid: 113,
                title: '订单销售汇总(商品)',
                icon: '',
                href: '/report/order/goods-order-report-list',
                api: '/report/dealer/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/order/goods/goods-order-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 330,
                    pid: 229,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/store_sale',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 290,
                pid: 113,
                title: '订单销售明细表',
                icon: '',
                href: '/report/warehouse/intelligent-sales-report',
                api: '/report/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/warehouse/intelligent-sales/intelligent-sales-report.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 330,
                    pid: 290,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/store_sale',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              }
            ]
          },
          {
            id: 114,
            pid: 9,
            title: '商品报表',
            icon: '',
            href: '/report/goods',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 230,
                pid: 114,
                title: '商品销售汇总(门店)',
                icon: '',
                href: '/report/goods/store-goods-report-list',
                api: '/report/dealer/goods',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/goods/store/store-goods-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 331,
                    pid: 230,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/store_sale',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 231,
                pid: 114,
                title: '商品销售汇总(业务员)',
                icon: '',
                href: '/report/goods/salesman-goods-report-list',
                api: '/report/dealer/goods',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/goods/salesman/salesman-goods-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 332,
                    pid: 231,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/store_sale',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 253,
                pid: 114,
                title: '商品销售汇总',
                icon: '',
                href: '/report/goods/dealer-goods-report-list',
                api: '/report/dealer/goods',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/goods/dealer/dealer-goods-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 332,
                    pid: 231,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/store_sale',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              }
            ]
          },
          {
            id: 116,
            pid: 9,
            title: '物流报表',
            icon: '',
            href: '/report/logistics',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 510,
                pid: 116,
                title: '签收单汇总(司机)',
                icon: '',
                href: '/report/logistics/driver-sign-report-list',
                api: '/order_sign/driver_sign_report',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/logistics/driver/driver-sign-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              },
              {
                id: 235,
                pid: 116,
                title: '签收单汇总(业务员)',
                icon: '',
                href: '/report/logistics/salesman-sign-report-list',
                api: '/report/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/logistics/salesman/salesman-sign-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 335,
                    pid: 235,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/driver',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              }
              // ,{
              //   id: 513,
              //   pid: 116,
              //   title: '运营数据(车辆)',
              //   icon: '',
              //   href: '/report/logistics/salesman-sign-report-list',
              //   api: '/report/list',
              //   menu_type: 1,
              //   target: '_self',
              //   file_path: '/business/report/logistics/salesman/salesman-sign-report-list.vue',
              //   redirect: '',
              //   status: 1,
              //   is_show: 1,
              //   children: [

              //   ]
              // },{
              //   id: 512,
              //   pid: 116,
              //   title: '运用数据(司机)',
              //   icon: '',
              //   href: '/report/logistics/salesman-sign-report-list',
              //   api: '/report/list',
              //   menu_type: 1,
              //   target: '_self',
              //   file_path: '/business/report/logistics/salesman/salesman-sign-report-list.vue',
              //   redirect: '',
              //   status: 1,
              //   is_show: 1,
              //   children: [

              //   ]
              // }
            ]
          },
          {
            id: 115,
            pid: 9,
            title: '仓库报表',
            icon: '',
            href: '/report/warehouse',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 232,
                pid: 115,
                title: '销售出库汇总',
                icon: '',
                href: '/report/warehouse/sales-out-report-list',
                api: '/report/warehouse/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/warehouse/sales/sales-out-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 333,
                    pid: 232,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/sale_out',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 233,
                pid: 115,
                title: '采退出库汇总',
                icon: '',
                href: '/report/warehouse/return-out-report-list',
                api: '/report/warehouse/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/warehouse/return/return-out-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 334,
                    pid: 233,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/sale_out',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 234,
                pid: 115,
                title: '仓库调拨汇总',
                icon: '',
                href: '/report/warehouse/transfer-out-report-list',
                api: '/report/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/warehouse/transfer/transfer-out-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1
              }
            ]
          },

          {
            id: 34,
            pid: 9,
            title: '市场报表',
            icon: '',
            href: '/market/goods',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 45,
                pid: 34,
                title: '订货商品汇总表',
                icon: '',
                href: '/report/market/goods',
                api: '/report/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/market/goods/market-goods-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 151,
                    pid: 43,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/driver',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 46,
                pid: 34,
                title: '订货单明细表',
                icon: '',
                href: '/report/market/order',
                api: '/report/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/market/order/market-order-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 151,
                    pid: 43,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/driver',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 47,
                pid: 34,
                title: '订货单履约记录',
                icon: '',
                href: '/report/market/performance',
                api: '/report/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/report/market/performance/market-performance-report-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 151,
                    pid: 43,
                    title: '导出',
                    icon: '',
                    href: 'report',
                    api: 'report/driver',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        id: 10,
        pid: 0,
        title: '数据',
        icon: 'vi-ant-design:area-chart-outlined',
        href: '/data',
        api: '',
        menu_type: 0,
        target: '_self',
        file_path: '',
        redirect: '',
        status: 1,
        is_show: 1,
        children: [
          {
            id: 117,
            pid: 10,
            title: '基础数据',
            icon: '',
            href: '/data/manage',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 236,
                pid: 117,
                title: '门店管理',
                icon: '',
                href: '/data/networks',
                api: '/networks/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/data/store/store-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 336,
                    pid: 236,
                    title: '新增',
                    icon: '',
                    href: 'add',
                    api: 'store/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 337,
                    pid: 236,
                    title: '门店地图',
                    icon: '',
                    href: 'list',
                    api: 'store/list',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 338,
                    pid: 236,
                    title: '导出',
                    icon: '',
                    href: 'export',
                    api: 'store/export',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 339,
                    pid: 236,
                    title: '导入',
                    icon: '',
                    href: 'import',
                    api: 'store/import',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 340,
                    pid: 236,
                    title: '编辑',
                    icon: '',
                    href: 'edit',
                    api: 'store/edit',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 341,
                    pid: 236,
                    title: '删除',
                    icon: '',
                    href: 'del',
                    api: 'store/del',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 342,
                    pid: 236,
                    title: '片区管理',
                    icon: '',
                    href: 'region',
                    api: 'region/list',
                    menu_type: 1,
                    target: '_self',
                    file_path: '/business/data/store/components/area-tree/index.vue',
                    redirect: '',
                    status: 1,
                    is_show: 2,
                    children: [
                      {
                        id: 343,
                        pid: 342,
                        title: '新增',
                        icon: '',
                        href: 'add',
                        api: 'region/add',
                        menu_type: 2,
                        target: '_self',
                        file_path: '',
                        redirect: '',
                        status: 1,
                        is_show: 1
                      },
                      {
                        id: 344,
                        pid: 342,
                        title: '未分区门店',
                        icon: '',
                        href: 'store',
                        api: 'region/store',
                        menu_type: 2,
                        target: '_self',
                        file_path: '',
                        redirect: '',
                        status: 1,
                        is_show: 1
                      },
                      {
                        id: 345,
                        pid: 342,
                        title: '绑定门店',
                        icon: '',
                        href: 'bind',
                        api: 'region/bind',
                        menu_type: 2,
                        target: '_self',
                        file_path: '',
                        redirect: '',
                        status: 1,
                        is_show: 1
                      },
                      {
                        id: 346,
                        pid: 342,
                        title: '删除',
                        icon: '',
                        href: 'del',
                        api: 'region/del',
                        menu_type: 2,
                        target: '_self',
                        file_path: '',
                        redirect: '',
                        status: 1,
                        is_show: 1
                      },
                      {
                        id: 347,
                        pid: 342,
                        title: '编辑',
                        icon: '',
                        href: 'edit',
                        api: 'region/edit',
                        menu_type: 2,
                        target: '_self',
                        file_path: '',
                        redirect: '',
                        status: 1,
                        is_show: 1
                      },
                      {
                        id: 348,
                        pid: 342,
                        title: '片区管理',
                        icon: '',
                        href: 'list',
                        api: 'region/list',
                        menu_type: 2,
                        target: '_self',
                        file_path: '',
                        redirect: '',
                        status: 1,
                        is_show: 1
                      },
                      {
                        id: 349,
                        pid: 342,
                        title: '门店地图按钮权限',
                        icon: '',
                        href: 'store',
                        api: 'region/store',
                        menu_type: 2,
                        target: '_self',
                        file_path: '',
                        redirect: '',
                        status: 1,
                        is_show: 1
                      }
                    ]
                  },
                  {
                    id: 350,
                    pid: 236,
                    title: '获取模板',
                    icon: '',
                    href: 'template',
                    api: 'region/template',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 237,
                pid: 117,
                title: '门店地图',
                icon: '',
                href: '/data/map',
                api: '/search/store',
                menu_type: 1,
                target: '_self',
                file_path: '/business/data/map/map-list.vue',
                redirect: '',
                status: 1,
                is_show: 2
              },
              {
                id: 241,
                pid: 117,
                title: '配送司机',
                icon: '',
                href: '/data/driver',
                api: '/driver/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/data/driver/driver-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              },
              {
                id: 242,
                pid: 117,
                title: '门店类型',
                icon: '',
                href: '/data/level',
                api: '/store_level/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/data/level/level-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              }
              //   {
              //   id: 243,
              //   pid: 117,
              //   title: '车辆管理',
              //   icon: '',
              //   href: '/data/vehicle',
              //   api: '/vehicle/list',
              //   menu_type: 1,
              //   target: '_self',
              //   file_path: '/business/data/vehicle/vehicle-list.vue',
              //   redirect: '',
              //   status: 1,
              //   is_show: 1,
              //   children: []
              // }
            ]
          },

          {
            id: 118,
            pid: 10,
            title: '客商数据',
            icon: '',
            href: '/data/manage',
            api: '',
            menu_type: 0,
            target: '_self',
            file_path: '',
            redirect: '',
            status: 1,
            is_show: 1,
            children: [
              {
                id: 238,
                pid: 118,
                title: '供应商',
                icon: '',
                href: '/data/supplier',
                api: '/supplier/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/data/supplier/supplier-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 351,
                    pid: 238,
                    title: '新增',
                    icon: '',
                    href: 'add',
                    api: 'supplier/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 352,
                    pid: 238,
                    title: '编辑',
                    icon: '',
                    href: 'edit',
                    api: 'supplier/edit',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 353,
                    pid: 238,
                    title: '删除',
                    icon: '',
                    href: 'del',
                    api: 'supplier/del',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 239,
                pid: 118,
                title: '业务员',
                icon: '',
                href: '/data/salesman',
                api: '/salesman/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/data/salesman/salesman-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: [
                  {
                    id: 354,
                    pid: 239,
                    title: '新增',
                    icon: '',
                    href: 'add',
                    api: 'salesman/add',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 355,
                    pid: 239,
                    title: '导入',
                    icon: '',
                    href: 'import',
                    api: 'salesman/import',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 356,
                    pid: 239,
                    title: '导出',
                    icon: '',
                    href: 'export',
                    api: 'salesman/export',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 357,
                    pid: 239,
                    title: '获取经销商门店',
                    icon: '',
                    href: 'store',
                    api: 'salesman/store',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 358,
                    pid: 239,
                    title: '绑定门店',
                    icon: '',
                    href: 'bind',
                    api: 'salesman/bind',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 359,
                    pid: 239,
                    title: '删除',
                    icon: '',
                    href: 'del',
                    api: 'salesman/del',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  },
                  {
                    id: 360,
                    pid: 239,
                    title: '编辑',
                    icon: '',
                    href: 'edit',
                    api: 'salesman/edit',
                    menu_type: 2,
                    target: '_self',
                    file_path: '',
                    redirect: '',
                    status: 1,
                    is_show: 1
                  }
                ]
              },
              {
                id: 240,
                pid: 118,
                title: '线路管理',
                icon: '',
                href: '/data/line',
                api: '/line/list',
                menu_type: 1,
                target: '_self',
                file_path: '/business/data/line/line-list.vue',
                redirect: '',
                status: 1,
                is_show: 1,
                children: []
              }
            ]
          }
        ]
      }
      // {
      //    id: 10,
      //   pid: 0,
      //   title: 'AI助手',
      //   icon: 'vi-ant-design:area-chart-outlined',
      //   href: '/ai-chat/index',
      //   api: '',
      //   menu_type: 1,
      //   target: '_self',
      //   file_path: '',
      //   redirect: '',
      //   status: 1,
      //   is_show: 1,
      // }
    ]
  },

  /**
   * 清理缓存 @author 卓大
   */
  getClearCache: () => {
    return getRequest('/init/clear_cache')
  }

  /**
   * 获取邮箱登录验证码 @author 卓大
   */
  //   sendLoginEmailCode: (loginName) => {
  //     return getRequest(`/login/sendEmailCode/${loginName}`);
  //   },

  /**
   * 获取双因子登录标识 @author 卓大
   */
  //   getTwoFactorLoginFlag: () => {
  //     return getRequest('/login/getTwoFactorLoginFlag');
  //   },
}
